import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

import java.lang.reflect.Array;
import java.util.Arrays;

public class arraytools {
    public  static void main(String[] args){

        //equals 比较两个数组的元素是否依次相等
        int[] arr1=new int[]{1,2,3,4};
        int[] arr2=new int[]{1,2,3,4};
        System.out.println(arr1==arr2);
        System.out.println(Arrays.equals(arr1,arr2));

        System.out.println(Arrays.toString(arr1));//输出数组信息

    }
}
